namespace Recast
{
	public unsafe partial class RecastGlobal
	{
		public unsafe partial class rcHeightfieldLayerSet
		{
			public rcHeightfieldLayer* layers;
			public int nlayers;
			public rcHeightfieldLayerSet()
			{
			}
			~rcHeightfieldLayerSet()
			{
				for (int i = 0; i < nlayers; ++i)
				{
					rcFree(layers[i].heights);
					rcFree(layers[i].areas);
					rcFree(layers[i].cons);
				}
				rcFree(layers);
			}
		}
	}
}
